package com.ruoyi.system.api;

import com.ruoyi.common.core.constant.SecurityConstants;
import com.ruoyi.common.core.constant.ServiceNameConstants;
import com.ruoyi.system.api.domain.SysUser;
import com.ruoyi.system.api.factory.RemoteKjyFallbackFactory;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestHeader;

/**
 * 用户服务
 * 
 * @author ruoyi
 */
@FeignClient(contextId = "RemoteKjyService", value = ServiceNameConstants.KJY_SERVICE, fallbackFactory = RemoteKjyFallbackFactory.class)
public interface RemoteKjyService
{
    @PostMapping("/achievement/updateNickName")
    public void updateAchievementNickName(@RequestBody SysUser user, @RequestHeader(SecurityConstants.FROM_SOURCE) String source);

    @PostMapping("/demand/updateNickName")
    public void updateDemandNickName(@RequestBody SysUser user, @RequestHeader(SecurityConstants.FROM_SOURCE) String source);
}
